<?php



class TabDetallesOrdenMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.TabDetallesOrdenMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('xaman');

		$tMap = $this->dbMap->addTable('tab_detalles_orden');
		$tMap->setPhpName('TabDetallesOrden');

		$tMap->setUseIdGenerator(true);

		$tMap->addForeignKey('CF_ORDEN', 'CfOrden', 'string', CreoleTypes::BIGINT, 'tab_ordenes', 'NUM_ORDEN', true, null);

		$tMap->addColumn('CF_SERVICIO', 'CfServicio', 'string', CreoleTypes::VARCHAR, true, 5);

		$tMap->addColumn('CF_SUBSERVICIO', 'CfSubservicio', 'string', CreoleTypes::VARCHAR, true, 5);

		$tMap->addColumn('CANTIDAD', 'Cantidad', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('CF_ENTE', 'CfEnte', 'string', CreoleTypes::VARCHAR, true, 40);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

	} 
} 